-- GENERATED SPELL FOR [Wrathtail Myrmidon] --


function spell0_3711(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3711', 15000, 1)
end

function spell1_3711(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3711', 633, 1)
end

function Sorts_3711(pUnit, Event)
local choix_sorts_3711 = math.random(0, 1)
if choix_sorts_3711 == 0 then
pUnit:RegisterEvent('spell0_3711', 1, 1)
end
if choix_sorts_3711 == 1 then
pUnit:RegisterEvent('spell1_3711', 1, 1)
end
end

function mob3711_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3711', math.random(1500, 3000), 1)
end

function mob3711_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3711_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3711_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3711, 1, 'mob3711_Action')
RegisterUnitEvent(3711, 2, 'mob3711_Leave')
RegisterUnitEvent(3711, 3, 'mob3711_Kill')
RegisterUnitEvent(3711, 4, 'mob3711_Die')
